<template>
    <div>
        <h3>这是 home 组件</h3>
        <mt-swipe :auto="4000">
            <mt-swipe-item>1</mt-swipe-item>
            <mt-swipe-item>2</mt-swipe-item>
            <mt-swipe-item>3</mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
    export default {
        data(){
            return{}
        },
        created(){
            this.getLunbotu();
        },
        methods: {
            getLunbotu(){
//                this.$http.get('http://www.escook.cn:3000/api/getnewslist').then(result => {
//                    console.log(result);
//                })
            }
        }
    }
</script>


<style scoped lang="scss">
    .mint-swipe{
        height: 300px;
        .mint-swipe-item{
            &:nth-child(1){
                background-color: red;
            }
            &:nth-child(2){
                 background-color: gray;
            }
            &:nth-child(3){
                background-color: green;
            }
        }
    }
</style>
